package by.grsu.shakh.validator;

import java.util.regex.Pattern;

import org.apache.wicket.validation.validator.PatternValidator;

public class GMailAddressValidator extends PatternValidator {

	/** 
	 * This class is for address verification mail
	 */
	private static final long serialVersionUID = 1L;

	public GMailAddressValidator() {
		super(
				"^[_A-Za-z0-9-+]+(\\.[_A-Za-z0-9-+]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*((\\.[A-Za-z]{2,}){1}$)",
				Pattern.CASE_INSENSITIVE);
	}
}